package com.smart.community.commons.constant;

/**
 * 错误码常量类
 * 
 * @author Wu.Liang
 */
public class ErrorCodeConstants {
    
    // 通用错误码
    public static final String SUCCESS = "200";
    public static final String FAIL = "500";
    public static final String PARAM_ERROR = "400";
    public static final String UNAUTHORIZED = "401";
    public static final String FORBIDDEN = "403";
    public static final String NOT_FOUND = "404";
    
    // 业务错误码
    public static final String USER_NOT_FOUND = "1001";
    public static final String USER_ALREADY_EXISTS = "1002";
    public static final String PASSWORD_ERROR = "1003";
    public static final String TOKEN_EXPIRED = "1004";
    public static final String TOKEN_INVALID = "1005";
    
    // 系统错误码
    public static final String SYSTEM_ERROR = "9001";
    public static final String DATABASE_ERROR = "9002";
    public static final String CACHE_ERROR = "9003";
    public static final String NETWORK_ERROR = "9004";
}
